package com.otp.webapp.comparators;

import com.otp.webapp.action.AnsweredItem;
import java.util.Comparator;

public class CompAnsItemsByItemOrderInSection implements Comparator<AnsweredItem>{
//Note that questions should belong to the same test section!
	
	//@Override
	public int compare(AnsweredItem a1, AnsweredItem a2){
		
		int order1 = a1.getItem().getOrderInSection();
		int order2 = a2.getItem().getOrderInSection();

		return order1-order2;
	}
} 
